package test.cloud.pangui.core.lock;

import cloud.pangui.core.lock.annotation.GlobalLock;
import lombok.Data;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther hepangui
 * @Date 2020/10/9 0009
 */
@Service
public class LockTestServiceA {

	@GlobalLock
	public void testNoArgNoReturn(){

	}

	@GlobalLock(key = "#args")
	public void testArgNoReturn(String a , int b, PO po , List<String> list){

	}

	@GlobalLock
	public String testArgReturn(){
		return null;
	}

	@GlobalLock
	public int testArgReturnInt(){
		return 1;
	}

	@GlobalLock
	public Integer testArgReturnInteger(){
		return 1;
	}


	@Data
	class PO{
		String aa;
		Integer bb;
	}
}
